//
//  room.hpp
//  宿舍管理系统
//
//  Created by 孟强定 on 2020/6/26.
//  Copyright © 2020 mqd. All rights reserved.
//

#ifndef room_hpp
#define room_hpp

#include <stdio.h>
#include "Student.hpp"
/*
1. Room 代表一个房间,
2. stuednts是宿舍里的学生,
3. buildingId是宿舍楼号,
4. floor是宿舍楼层,
5. id是宿舍编号,
6. num是一个宿舍内床位个数
6. 默认一个宿舍六个床位.
*/
class Room{
private:
    Student** students;
    int buildingId, floorId, roomId, num;
public:
    Room(int n=6);
    Room(int buildingId, int floor, int id, int n=6);
    void init(int buildingId, int floor, int roomId);
    void autoDistribute();
    bool autoDistributeOne(Student *stu);
    bool delOne(Student *stu);
    void print();
};


#endif /* room_hpp */


